package org.hnsd.train.pattern.state;

/**
 * @author youqd
 * @tag.date 2023-11-08 16:43
 **/
public class FlowContext {
    IFlowState flowState;

    FlowContext(IFlowState flowState){
        this.flowState = flowState;
    }

    public void commitFlow(){
        this.flowState.commitForm(this);
    }

    public void setFlowState(IFlowState flowState) {
        this.flowState = flowState;
    }
}
